package com.art.sunflower.service;

import com.art.sunflower.exception.NullWorkException;
import com.art.sunflower.pojo.SchoolTeacher;
import com.art.sunflower.util.MyPageInfo;

public interface SchoolTeacherService {
    int insert(SchoolTeacher schoolTeacher);

    int update(SchoolTeacher schoolTeacher);

    int updateIndex(int id, boolean isIndex);

    int delete(int id);

    MyPageInfo listAll(Integer pageSize, Integer pageNo) throws NullWorkException;

    SchoolTeacher selectOne(int id);

}
